<!-- IF S_QR_ACTIVE -->
<script type="text/javascript">
var LANG_TOO_FEW_CHARS 		= '{L_TOO_FEW_CHARS}';
var LANG_L_NO_TEXT_SELECTED	= '{L_NO_TEXT_SELECTED}';
var	form_name 				= 'postform';
var	text_name 				= 'message';
var in_quick_reply			= true;
</script>
<script type="text/javascript" src="{T_TEMPLATE_PATH}/quickreply_editor.js" ></script>
<script type="text/javascript" src="{T_TEMPLATE_PATH}/editor.js" ></script>
	<form action="{S_QR_POST_ACTION}" method="post" id="postform" name="postform" onsubmit="return checkQuickForm(this)">
	{S_FORM_TOKEN}
	<table class="tablebg" cellspacing="1" width="100%" style="margin-top: 5px;">
		<tr>
			<th colspan="2"><h4>{L_POST_REPLY}</h4></th>
		</tr>
		<!-- IF S_QR_SUBJECT -->
		<tr>
			<td class="row1" colspan="2"><span class="gensmall"><b>{L_SUBJECT}:</b></span>&nbsp;<input class="post" type="text" tabindex="3" name="subject" id="subject" size="50" maxlength="30" class="inputbox" value="{QR_SUBJECT}" style="font: 8pt Tahoma;padding: 2px;" /></td>
		</tr>
		<!-- ELSE -->
		<input type="hidden" name="subject" value="{QR_SUBJECT}" />
		<!-- ENDIF -->
		<!-- IF S_QR_BBCODE_BOX_ACTIVE -->
		<tr>
			<td class="row1" colspan="2"><!-- INCLUDE posting_buttons.html --></td>
		</tr>
		<!-- ENDIF -->
		<!-- IF not S_USER_LOGGED_IN -->
		<tr>
			<td class="row1" colspan="2"><span class="gensmall"><b>{L_USERNAME}:</b></span>&nbsp;<input type="text" tabindex="3" name="username" id="username" size="25" maxlength="30" class="inputbox" /><!-- IF S_CONFIRM_CODE -->&nbsp;<b>{L_CONFIRM_CODE}:</b>&nbsp;<input type="text" name="confirm_code" id="confirm_code" size="8" maxlength="8" tabindex="4" class="inputbox narrow" title="{L_CONFIRM_CODE}" /><br /><input type="hidden" name="confirm_id" value="{CONFIRM_ID}" />{CONFIRM_IMAGE}<!-- ENDIF --></td>
		</tr>
		<!-- ENDIF -->
		<tr>
			<td class="row1" width="500" style="padding: 10px;"><textarea name="message" id="message" tabindex="3" style="width: 500px;height: 150px;border: 1px solid #CCCCCC;"></textarea></td>
			<td class="row1" width="*" align="center" valign="top" style="padding: 30px;">
				<!-- IF .smiley -->
                    <span class="gensmall"><strong>{L_SMILIES}</strong></span><br /><br />
                    <!-- BEGIN smiley -->
                    <a href="#" onclick="insert_text('{smiley.A_SMILEY_CODE}', true); return false;"><img src="{smiley.SMILEY_IMG}" width="{smiley.SMILEY_WIDTH}" height="{smiley.SMILEY_HEIGHT}" alt="{smiley.SMILEY_CODE}" title="{smiley.SMILEY_DESC}" /></a>
                    <!-- END smiley -->
                <!-- ENDIF -->
                <!-- IF S_SHOW_SMILEY_LINK -->
                    <br /><a href="{U_MORE_SMILIES}" class="gensmall" onclick="window.open('{U_MORE_SMILIES}', '_phpbbsmilies', 'HEIGHT=350,resizable=yes,scrollbars=yes,WIDTH=300'); return false;">{L_MORE_SMILIES}</a>
                 <!-- ENDIF -->
			</td>
		</tr>
		<tr>
			<td colspan="2" class="row1">
				<span class="gensmall">
				<!-- IF S_QR_ATTACH_SIG -->
					<input type="checkbox" class="radio" name="attach_sig" id="attach_sig"{S_QR_SIGNATURE_CHECKED} /> {L_ATTACH_SIG}<br />
				<!-- ENDIF -->	
				<!-- IF S_QR_QUOTE_LAST -->
					<input type="checkbox" class="radio" name="quote_last_msg" id="quote_last_msg" /> {L_QUOTE_LAST_POST}<br />
				<!-- ENDIF -->						
				<!-- IF S_QR_NOTIFY -->
					<input type="checkbox" class="radio" name="notify" id="notify"{S_QR_NOTIFY_CHECKED} /> {L_NOTIFY_REPLY}<br />
				<!-- ENDIF -->			
				&nbsp;<a href="#" onclick="quoteSelection(); return false;">{L_QUOTE_SELECTED}</a><br />
				</span>
			</td>
		</tr>
		<tr>
			<td class="row2" align="center" colspan="2">
				{S_QR_HIDDEN_FIELDS}
				<input type='hidden' name='last_post' value='{S_QR_LAST_POST}' />			
				<input type="submit" class="btnlite" tabindex="5" name="preview" value="{L_PREVIEW}" />
				&nbsp;<input type="submit" class="btnmain" accesskey="s" tabindex="6" name="post" value="{L_SUBMIT}" />
			</td>			
		</tr>
	</table>
	</form>	
<!-- ENDIF -->
